# -*- coding: utf-8 -*-
# https://blog.csdn.net/weixin_52040868
# 公众号：测个der
# 微信：qing_an_an


import sys
from PyQt5.QtWidgets import *

class Example(QWidget):
    def __init__(self):
        super(Example, self).__init__()
        self.initUI()

    def initUI(self):
        lab1 = QLabel("欢迎",self)
        lab1.move(15,10)

        lab2 = QLabel("学习", self)
        lab2.move(35, 30)

        lab3 = QLabel("Pyqt5", self)
        lab3.move(55, 50)

        self.setGeometry(300,300,320,120)
        self.setWindowTitle("绝对位置的布局例子")

if __name__ == '__main__':
    app = QApplication(sys.argv)
    example = Example()
    example.show()
    sys.exit(app.exec_())